/*
 *    Copyright 2022 The DSMS Authors.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package com.dsms.dfsbroker.rbd.model.dto;

import com.dsms.common.constant.NameSchemeEnum;
import com.dsms.common.validator.GeneralParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RbdCreateDTO {
    @NotBlank(message = "元数据池名称不能为空")
    private String poolName;
    @NotBlank(message = "存储卷名称不能为空")
    @GeneralParam(nameSchemeEnum = NameSchemeEnum.STORAGE_VOLUME)
    private String rbdName;
    @NotNull(message = "存储卷容量不能为空")
    private Double rbdSize;
    private String dataPoolName;
    @NotNull(message = "存储卷模式不能为空")
    private Boolean basedOnEra;
}
